package com.qiuyang.pojo;

import javax.persistence.*;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;


public class Comment {


    private Long id;
    //昵称
    private String nickname;
    //邮箱
    private String email;
    //文章
    private String content;

    //创建时间
    private Date createTime;

    private Long blogId;

    private Long parentComment;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Long getBlogId() {
        return blogId;
    }

    public void setBlogId(Long blogId) {
        this.blogId = blogId;
    }

    public Long getParentComment() {
        return parentComment;
    }

    public void setParentComment(Long parentComment) {
        this.parentComment = parentComment;
    }

    public Comment() {
    }

    public Comment(Long id, String nickname, String email, String content, Date createTime, Long blogId, Long parentComment) {
        this.id = id;
        this.nickname = nickname;
        this.email = email;
        this.content = content;
        this.createTime = createTime;
        this.blogId = blogId;
        this.parentComment = parentComment;
    }
}
